#include<iostream>
#include<iomanip>
#include<string>
#include"Student.h"
#include"StudentRegister.h"

using namespace std;

void main3_1_2()
{
	cout << "main3_1_2" << endl;
	Student s1;
	Student s2("Rasha", "Zaki", 2012);

	s2.Write();
	s1.Read();
	s1.Write();
	string ln;
	string fn;
	int ey;
	

	cout << "The firstname is: ";
	cout << s1.GetfirstName() << endl;
	

}

void main3_3()
{
	cout << "main3_3" << endl;
	Student s;

	cin >> s;
	cout << s;
	
}


void main3_4_5()
{
	
	StudentRegister sr;
	cout << "main3_4_5" << endl;

	Student s1("Shahad", "Zaki", 2010);
	Student s2("Dina", "zaki", 2011);
	Student s3("Marina", "Zaki", 2019);
	

	sr.Add(s1);
	sr.Add(s2);
	sr.Add(s3);
	cout << sr.List() << endl;

	sr.WritetoFile("Student2.txt");

	sr.ReadfromFile("Student2.txt");
	cout << sr.List() << endl;

}

int main()
{
	main3_1_2();
	main3_3();
	main3_4_5();

	system("PAUSE");
	return 0;
}